import { RouteRecordRaw } from "vue-router";
import { UiBasicLayout } from "../views/iframe"

const constantRouteMap: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'index',
        component: UiBasicLayout,
        children: [
            {
                path: '/home',
                name: 'home',
                component: () => import("@/views/home.vue"),
                meta: { title: '首页', icon: 'home-o', tabbar: true }
            },
            {
                path: '/managerial',
                name: 'managerial',
                component: () => import("@/views/home.vue"),
                meta: { title: '发现', icon: 'apps-o', tabbar: true }
            },
            {
                path: '/order',
                name: 'order',
                component: () => import("@/views/home.vue"),
                meta: { title: '订单', icon: 'orders-o', tabbar: true }
            },
            {
                path: '/user',
                name: 'user',
                component: () => import("@/views/home.vue"),
                meta: { title: '个人中心', icon: 'user-o', tabbar: true }
            },
            {
                path: '/address/list',
                name: 'adrlist',
                component: () => import("@/views/address/list.vue"),
                meta: { title: '选择地址' }
            },
            {
                path: '/address/search',
                name: 'adrsearch',
                component: () => import("@/views/address/search.vue"),
                meta: { title: '', right_text: '切换城市' }
            }
        ]
    },
    {
        path: '/user/login',
        name: 'login',
        component: () => import("@/views/user/login.vue"),
    },

]

export { constantRouteMap }